package com.zhuxiaomei.entity.msg;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author hxm
 * @date 2025/1/9 21:21
 * @description
 */
@Table(name = "wage_conversion_message")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class WageConversionMessage implements Serializable {
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;

    //发送请求的用户id
    @Column(name = "request_user")
    private Long requestUser;
    //接请求的用户id
    @Column(name = "response_user")
    private Long responseUser;
    //工资
    @Column(name = "wage")
    private BigDecimal wage;
    //硬币
    @Column(name = "coin")
    private BigDecimal coin;
    //1：等待处理，2：通过，3：驳回
    @Column(name = "status")
    private Integer status;
}
